Skip to content

feat(lab6): Dockerize QuickNotes: multi-stage Dockerfile + compose.yaml#1210

Open
blacktree-lab wants to merge 5 commits into
inno-devops-labs:mainfrom
blacktree-lab:feature/lab6
Open

feat(lab6): Dockerize QuickNotes: multi-stage Dockerfile + compose.yaml#1210
blacktree-lab wants to merge 5 commits into
inno-devops-labs:mainfrom
blacktree-lab:feature/lab6

Conversation

@blacktree-lab

Copy link
Copy Markdown

Goal

Produce a <= 25 MB Docker image of QuickNotes and run it with a healthcheck and persistent volume via Docker Compose.

Changes

  • Added app/Dockerfile - multi-stage build (golang:1.24-alpine distroless/static:nonroot), final image 15.4 MB
  • Added compose.yaml at repo root - named volume, healthcheck via static binary, all 6 security defaults applied
  • Added submissions/lab6.md - Task 1, Task 2, and Bonus completed

Testing

  • docker images quicknotes:lab6 shows 15.4 MB (≤ 25 MB requirement)
  • docker compose up -d starts container with status (healthy)
  • POST note -> compose down -> compose up -> note still exists
  • POST note -> compose down -v -> compose up -> note gone
  • Trivy scan: 0 HIGH, 0 CRITICAL vulnerabilities

Checklist

  • app/Dockerfile present, image ≤ 25 MB
  • compose.yaml present at repo root
  • submissions/lab6.md updated

Signed-off-by: DJ Bubu <djbubu28@yahoo.com>
Signed-off-by: DJ Bubu <djbubu28@yahoo.com>
Signed-off-by: DJ Bubu <djbubu28@yahoo.com>
Signed-off-by: DJ Bubu <djbubu28@yahoo.com>
Signed-off-by: DJ Bubu <djbubu28@yahoo.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant